#include "logger.hpp"

#if defined _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif

namespace nmc
{
	Logger::Logger()
	{
		mFile.open ("log.txt");
	}

	Logger::~Logger()
	{
		mFile.close();
	}

	void Logger::log(const std::string& message)
	{
		mFile << message << std::endl;
#if defined _WIN32
		std::string tmp = message + "\n";
		OutputDebugStringA(tmp.c_str());
#endif
	}
}